package models;

import javax.persistence.Entity;
import javax.persistence.Id;

import play.data.validation.Email;
import play.db.jpa.GenericModel;

@Entity
public class User extends GenericModel {

	@Id
	public String username;
	
	@Email
	public String email;
	
	public String firstName;
	public String lastName;
	
	@Override
	public String toString() {
		return "" + firstName + " " + lastName;
	}
	
	public String getFullName(){
		return firstName+" "+lastName;
	}
}
